<div style="float:right;height:30px">
<input onclick="window.location='<?php echo $admin_base_url;?>users/add/<?php echo $cur_page;?>';"  type="button" class="sbtbutton" value="Add Users" />
</div>
<table id="tbllist">
<tbody>
<tr>
<th class="tbslno">Sl.No</th>
<th class="tbname">First Name</th>
<th class="tbname">Email</th>
<th class="tbaction">Action</th>
</tr>
<?php 
if(!empty($users)) {
	foreach($users as $key => $record) {
		$style = (++$key%2) ? '' : 'alt'; 
?>	
	<tr class="<?php echo $style;?>">
		<td><?= ($cur_page + $key);?></td>
		<td><?php echo $record['first_name']?></td>
		<td><?php echo $record['email']?></td>
		<td>
		<a href="<?php echo $admin_base_url;?>users/edit/<?php echo $record['id'];?>/<?php echo $cur_page;?>"><img border="0" src="<?php echo $admin_image_path;?>edit1.png" alt="" title="Edit" width="18" height="18"/></a>
		<a href="<?php echo $admin_base_url;?>users/delete/<?php echo $record['id'];?>/<?php echo $cur_page;?>" onclick="return confirm('Do you want to delete this ?');"><img border="0" src="<?php echo $admin_image_path;?>delete1.png" alt="" title="Delete" width="16" height="16"/></a>
		</td>
	</tr>
<?php 
	}
} else {
?>
<tr><td colspan="6">No users available</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>